﻿using L.UI.Base;
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class InitPanel : BasePanel
{
    private void Start()
    {
        AddOnClickListener("EnterSystem", Open);
        AddOnClickListener("CloseButton", CloseProcedure);
    }

    

    private void Open()
    {
        UIManager.Instance.CloseAllUI();
        OpenUI(UIPanelType.SpacePanel);
        OpenUI(UIPanelType.MainPanel);
        LoadScene.Instance.LoadTheScene("SpaceScene");
    }
}
